package com.coding.kan_yi_dao.service.impl;

import com.coding.kan_yi_dao.common.Result;
import com.coding.kan_yi_dao.entity.OrderItem;
import com.coding.kan_yi_dao.mapper.OrderItemMapper;
import com.coding.kan_yi_dao.service.IOrderItemService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 砍一刀，不买就砍你一刀
 * @since 2023-09-20
 */
@Service
public class OrderItemServiceImpl extends ServiceImpl<OrderItemMapper, OrderItem> implements IOrderItemService {

    @Resource
    OrderItemMapper orderItemMapper;

    @Override
    public Result go_select(OrderItem orderItem) {
        Integer b = orderItem.getOrderId();
        return Result.ok(orderItemMapper.go_select(b));
    }
    @Override
    public Result go_insert(OrderItem orderItem) {
        return Result.ok(baseMapper.insert(orderItem));
    }
}
